$OpenBSD: patch-Tools_DumpRenderTree_JavaScriptThreading_cpp,v 1.1.1.1 2016/12/25 14:13:13 zhuk Exp $
--- Tools/DumpRenderTree/JavaScriptThreading.cpp.orig	Fri Dec 19 23:01:59 2014
+++ Tools/DumpRenderTree/JavaScriptThreading.cpp	Fri Dec 19 23:02:47 2014
@@ -101,7 +101,7 @@ void runJavaScriptThread(void*)
         }
 
         // Respawn probabilistically.
-        if (rand() % 5)
+        if (arc4random_uniform(5))
             continue;
 
         MutexLocker locker(javaScriptThreadsMutex());
